/**
 * 
 */
package com.wolfware.athsweb.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.wolfware.athsweb.domain.AbstractCompetitionResult;
import com.wolfware.athsweb.domain.AbstractEvent;
import com.wolfware.athsweb.manager.CompetitionEventManager;
import com.wolfware.athsweb.response.Response;
import com.wolfware.athsweb.service.CompetitionService;

/**
 * @author Christian S
 *
 */
public class CompetitionServiceImpl implements CompetitionService {

	@Autowired
	CompetitionEventManager competitionEventManager;
	
	/**
	 * @return the competitionManager
	 */
	public CompetitionEventManager getCompetitionManager() {
		return competitionEventManager;
	}

	/**
	 * @param competitionEventManager the competitionManager to set
	 */
	public void setCompetitionEventManager(final CompetitionEventManager competitionEventManager) {
		this.competitionEventManager = competitionEventManager;
	}

	/**
	 * {@inheritDoc}
	 */
	public Response submitNewCompetition(String compName, Date compDate, List<AbstractEvent> compEventList) {
		Response response = competitionEventManager.submitNewCompetition(compName, compDate, compEventList);
		return response;
	}
	
    /**
     * {@inheritDoc}
     */
    public List<AbstractCompetitionResult> retrieveAllCompetitionResults() {
        // TODO Auto-generated method stub
        return null;
    }

    /**
     * {@inheritDoc}
     */
    public List<AbstractCompetitionResult> retrieveCompetitionResultsByCompetitionID() {
        // TODO Auto-generated method stub
        return null;
    }

    /**
     * {@inheritDoc}
     */
    public List<AbstractCompetitionResult> retrieveCompetitionResultsByCompetitorID() {
        // TODO Auto-generated method stub
        return null;
    }

}
